let data
// 统计方式为媒体来源
// 1.饼状图及基础柱状图，基础柱状图2
data = [
  { label: '博客', value: 22740 },
  { label: '微博', value: 44985177 },
  { label: 'APP采集', value: 4339222 },
  { label: '网媒', value: 11072286 },
  { label: '论坛', value: 6619033 },
  { label: '未知来源', value: 0 },
  { label: '平媒', value: 238982 },
  { label: '问答', value: 782220 },
  { label: '长微博', value: 974 },
  { label: '电视台', value: 591 },
  { label: '微信', value: 5391374 },
  { label: '杂志', value: 487 },
  { label: '视频', value: 72876 }
]

// 2.堆叠柱状图,分组柱状图
data = [
  { name: '博客', 媒体来源: 22740 },
  { name: '微博', 媒体来源: 44985177 },
  { name: 'APP采集', 媒体来源: 4339222 },
  { name: '网媒', 媒体来源: 11072286 },
  { name: '论坛', 媒体来源: 6619033 },
  { name: '未知来源', 媒体来源: 0 },
  { name: '平媒', 媒体来源: 238982 },
  { name: '问答', 媒体来源: 782220 },
  { name: '长微博', 媒体来源: 974 },
  { name: '电视台', 媒体来源: 591 },
  { name: '微信', 媒体来源: 5391374 },
  { name: '杂志', 媒体来源: 487 },
  { name: '视频', 媒体来源: 72876 }
]

// 统计方式为发布时间
// 1.基础柱状图，基础柱状图2，基础折线图
data = [
  { label: '20200310', value: 1904491 },
  { label: '20200311', value: 1897823 },
  { label: '20200312', value: 1923201 },
  { label: '20200313', value: 1924980 },
  { label: '20200314', value: 1373671 },
  { label: '20200315', value: 1197445 },
  { label: '20200316', value: 860370 }
]
// 2.堆叠柱状图
data = [
  {
    '20200310': 0,
    '20200311': 0,
    '20200312': 0,
    '20200313': 0,
    '20200314': 0,
    '20200315': 0,
    '20200316': 0,
    name: '论坛'
  },
  {
    '20200310': 0,
    '20200311': 0,
    '20200312': 0,
    '20200313': 0,
    '20200314': 0,
    '20200315': 0,
    '20200316': 0,
    name: '博客'
  },
  {
    '20200310': 0,
    '20200311': 0,
    '20200312': 0,
    '20200313': 0,
    '20200314': 0,
    '20200315': 0,
    '20200316': 0,
    name: '平媒'
  },
  {
    '20200310': 0,
    '20200311': 0,
    '20200312': 0,
    '20200313': 0,
    '20200314': 0,
    '20200315': 0,
    '20200316': 0,
    name: '电台'
  },
  {
    '20200310': 0,
    '20200311': 0,
    '20200312': 0,
    '20200313': 0,
    '20200314': 0,
    '20200315': 0,
    '20200316': 0,
    name: '微博'
  },
  {
    '20200310': 0,
    '20200311': 0,
    '20200312': 0,
    '20200313': 0,
    '20200314': 0,
    '20200315': 0,
    '20200316': 0,
    name: '微信'
  },
  {
    '20200310': 0,
    '20200311': 0,
    '20200312': 0,
    '20200313': 0,
    '20200314': 0,
    '20200315': 0,
    '20200316': 0,
    name: '视频'
  },
  {
    '20200310': 0,
    '20200311': 0,
    '20200312': 0,
    '20200313': 0,
    '20200314': 0,
    '20200315': 0,
    '20200316': 0,
    name: 'APP采集'
  },
  {
    '20200310': 1906537,
    '20200311': 1900070,
    '20200312': 1925794,
    '20200313': 1928470,
    '20200314': 1377576,
    '20200315': 1204271,
    '20200316': 1037401,
    name: '网媒'
  }
]
// 3.分组柱状图, 多折线图
data = [
  ({ name: '论坛', year: '20200310', value: 0 },
  { name: '论坛', year: '20200311', value: 0 },
  { name: '论坛', year: '20200312', value: 0 },
  { name: '论坛', year: '20200313', value: 0 },
  { name: '论坛', year: '20200314', value: 0 },
  { name: '论坛', year: '20200315', value: 0 },
  { name: '论坛', year: '20200316', value: 0 },
  { name: '博客', year: '20200310', value: 0 },
  { name: '博客', year: '20200311', value: 0 },
  { name: '博客', year: '20200312', value: 0 },
  { name: '博客', year: '20200313', value: 0 },
  { name: '博客', year: '20200314', value: 0 },
  { name: '博客', year: '20200315', value: 0 },
  { name: '博客', year: '20200316', value: 0 },
  { name: '平媒', year: '20200310', value: 0 },
  { name: '平媒', year: '20200311', value: 0 },
  { name: '平媒', year: '20200312', value: 0 },
  { name: '平媒', year: '20200313', value: 0 },
  { name: '平媒', year: '20200314', value: 0 },
  { name: '平媒', year: '20200315', value: 0 },
  { name: '平媒', year: '20200316', value: 0 },
  { name: '电台', year: '20200310', value: 0 },
  { name: '电台', year: '20200311', value: 0 },
  { name: '电台', year: '20200312', value: 0 },
  { name: '电台', year: '20200313', value: 0 },
  { name: '电台', year: '20200314', value: 0 },
  { name: '电台', year: '20200315', value: 0 },
  { name: '电台', year: '20200316', value: 0 },
  { name: '微博', year: '20200310', value: 0 },
  { name: '微博', year: '20200311', value: 0 },
  { name: '微博', year: '20200312', value: 0 },
  { name: '微博', year: '20200313', value: 0 },
  { name: '微博', year: '20200314', value: 0 },
  { name: '微博', year: '20200315', value: 0 },
  { name: '微博', year: '20200316', value: 0 },
  { name: '微信', year: '20200310', value: 0 },
  { name: '微信', year: '20200311', value: 0 },
  { name: '微信', year: '20200312', value: 0 },
  { name: '微信', year: '20200313', value: 0 },
  { name: '微信', year: '20200314', value: 0 },
  { name: '微信', year: '20200315', value: 0 },
  { name: '微信', year: '20200316', value: 0 },
  { name: '视频', year: '20200310', value: 0 },
  { name: '视频', year: '20200311', value: 0 },
  { name: '视频', year: '20200312', value: 0 },
  { name: '视频', year: '20200313', value: 0 },
  { name: '视频', year: '20200314', value: 0 },
  { name: '视频', year: '20200315', value: 0 },
  { name: '视频', year: '20200316', value: 0 },
  { name: 'APP采集', year: '20200310', value: 0 },
  { name: 'APP采集', year: '20200311', value: 0 },
  { name: 'APP采集', year: '20200312', value: 0 },
  { name: 'APP采集', year: '20200313', value: 0 },
  { name: 'APP采集', year: '20200314', value: 0 },
  { name: 'APP采集', year: '20200315', value: 0 },
  { name: 'APP采集', year: '20200316', value: 0 },
  { name: '网媒', year: '20200310', value: 1904491 },
  { name: '网媒', year: '20200311', value: 1897823 },
  { name: '网媒', year: '20200312', value: 1923201 },
  { name: '网媒', year: '20200313', value: 1924980 },
  { name: '网媒', year: '20200314', value: 1373671 },
  { name: '网媒', year: '20200315', value: 1197445 },
  { name: '网媒', year: '20200316', value: 860370 })
]

// 统计方式为情感
// 1.饼状图及基础柱状图，基础柱状图2
data = [
  { label: '负面', value: 7035274 },
  { label: '正面', value: 28516945 },
  { label: '中性', value: 38099413 }
]
// 2.堆叠柱状图
data = [
  {
    '20200310': 1115371,
    '20200311': 1115732,
    '20200312': 1189545,
    '20200313': 1152291,
    '20200314': 965952,
    '20200315': 955462,
    '20200316': 687831,
    name: '负面'
  },
  {
    '20200310': 4742815,
    '20200311': 4605994,
    '20200312': 4583988,
    '20200313': 4682973,
    '20200314': 4152615,
    '20200315': 3758810,
    '20200316': 2616539,
    name: '正面'
  },
  {
    '20200310': 6418836,
    '20200311': 6196268,
    '20200312': 6252203,
    '20200313': 6163416,
    '20200314': 5476724,
    '20200315': 5055964,
    '20200316': 3336026,
    name: '中性'
  }
]
// 3.分组柱状图,多折线图
data = [
  { name: '负面', year: '20200310', value: 1115371 },
  { name: '负面', year: '20200311', value: 1115732 },
  { name: '负面', year: '20200312', value: 1189545 },
  { name: '负面', year: '20200313', value: 1152291 },
  { name: '负面', year: '20200314', value: 965952 },
  { name: '负面', year: '20200315', value: 955462 },
  { name: '负面', year: '20200316', value: 687831 },
  { name: '正面', year: '20200310', value: 4742815 },
  { name: '正面', year: '20200311', value: 4605994 },
  { name: '正面', year: '20200312', value: 4583988 },
  { name: '正面', year: '20200313', value: 4682973 },
  { name: '正面', year: '20200314', value: 4152615 },
  { name: '正面', year: '20200315', value: 3758810 },
  { name: '正面', year: '20200316', value: 2616539 },
  { name: '中性', year: '20200310', value: 6418836 },
  { name: '中性', year: '20200311', value: 6196268 },
  { name: '中性', year: '20200312', value: 6252203 },
  { name: '中性', year: '20200313', value: 6163416 },
  { name: '中性', year: '20200314', value: 5476724 },
  { name: '中性', year: '20200315', value: 5055964 },
  { name: '中性', year: '20200316', value: 3336026 }
]
// 统计方式为站点发布量得词云图
data = [
  { name: '澎湃新闻网', value: 86076 },
  { name: '快资讯网', value: 627418 },
  { name: '一点资讯网', value: 1073447 },
  { name: '知乎', value: 791581 },
  { name: 'UC浏览器官网', value: 540182 },
  { name: '百度贴吧', value: 5131394 },
  { name: '凤凰新闻app', value: 171506 },
  { name: '东方财富网股吧', value: 949053 },
  { name: '网易', value: 389562 },
  { name: '豆瓣社区', value: 94093 },
  { name: '今日头条', value: 1128503 },
  { name: '新浪看点网', value: 672038 },
  { name: '虎扑体育论坛', value: 120698 },
  { name: '百家号', value: 703080 },
  { name: '微信', value: 5532718 },
  { name: '天天快报', value: 2667311 },
  { name: '搜狐', value: 927283 },
  { name: '今日头条网', value: 2487681 },
  { name: '新浪网', value: 154420 },
  { name: '雪球网', value: 161188 }
]
// 统计方式为舆情地图
// 1.地图
data = [
  { name: '湖北', id: 744, value: 1682738 },
  { name: '广东', id: 738, value: 1114578 },
  { name: '山东', id: 736, value: 905756 },
  { name: '江苏', id: 731, value: 863216 },
  { name: '浙江', id: 730, value: 788148 },
  { name: '北京', id: 727, value: 878415 },
  { name: '四川', id: 753, value: 718690 },
  { name: '河南', id: 742, value: 704155 },
  { name: '上海', id: 729, value: 679870 },
  { name: '河北', id: 726, value: 478489 },
  { name: '福建', id: 732, value: 494248 },
  { name: '安徽', id: 734, value: 448728 },
  { name: '陕西', id: 748, value: 433003 },
  { name: '湖南', id: 743, value: 434757 },
  { name: '山西', id: 728, value: 328273 },
  { name: '云南', id: 752, value: 311056 },
  { name: '广西', id: 739, value: 285404 },
  { name: '贵州', id: 751, value: 276822 },
  { name: '江西', id: 733, value: 292176 },
  { name: '辽宁', id: 721, value: 310753 },
  { name: '重庆', id: 750, value: 286949 },
  { name: '甘肃', id: 745, value: 241441 },
  { name: '内蒙古', id: 724, value: 211416 },
  { name: '黑龙江', id: 722, value: 210292 },
  { name: '海南', id: 737, value: 174942 },
  { name: '天津', id: 725, value: 195222 },
  { name: '新疆', id: 747, value: 177640 },
  { name: '吉林', id: 723, value: 147285 },
  { name: '香港', id: 755, value: 141552 },
  { name: '青海', id: 749, value: 96082 },
  { name: '西藏', id: 754, value: 96401 },
  { name: '台湾', id: 735, value: 115147 },
  { name: '宁夏', id: 746, value: 76474 },
  { name: '澳门', id: 756, value: 34787 }
]
